package net.chemistry;

import java.util.Collection;
import java.util.HashMap;
import java.util.Set;

public class MoleculeRecipies 
{
	private MoleculeRecipies()
	{
		
	}
	
	private static HashMap<String,Molecule> molecules = new HashMap<>();
	
	public static Set<String> getRegisteredNames()
	{
		return molecules.keySet();
	}
	
	public static Collection<Molecule> getRegisteredMolecules()
	{
		return molecules.values();
	}
	
	public static void registerMolecule(String name, Molecule recipie)
	{
		molecules.put(name, recipie);
	}
	
	public static Molecule getMolecule(String name)
	{
		return molecules.get(name).clone();
	}
}
